<div class='form'>
  <% form_for @brand,:html=>{:multipart=>true} do |f| %>
    <%= f.error_messages %>

    <p>
      <label for="brand_name">名称1</label>
      <%= f.text_field :name %>
    </p>

    <p>
      <label for="brand_name">名称2</label>
      <%= f.text_field :name2 %>
    </p>
    <p>
      <label for="brand_description">描述</label>
      <%= f.text_area :description %>
    </p>
    <p>
      <label for="brand_image_url">上传图片</label>
      <%= file_column_field "brand", "image_url" %>
    </p>

    <p>
      <label for="brand_active">可用</label>
      <%= f.check_box :active %>
    </p>

    <p>
      <%= f.submit button_name,:class=>'submit' %>
    </p>
  <% end %>
</div>